import 'package:flutter/material.dart';
import 'package:flutter_app/TstSwiper.dart';
import 'package:flutter_app/TstLoading.dart';
import 'package:flutter_app/TstExpansionPanelList.dart';

import 'TstRefrsh.dart';
class ThreePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) => Scaffold(
          body: ListView(
        children: <Widget>[
          Card(
              margin: EdgeInsets.all(10.0),
              child: ListTile(
                title: Text('Flutter Swiper'),
                subtitle: Text('轮播组件'),
                onTap: () {
                  Navigator.push(context, MaterialPageRoute(builder: (context) {
                    return TstSwiper();
                  }));
                },
              )),
          Card(
              margin: EdgeInsets.all(10.0),
              child: ListTile(
                title: Text('Flutter_spinkit'),
                subtitle: Text('Loading框'),
                onTap: () {
                  Navigator.push(context, MaterialPageRoute(builder: (context) {
                    return TstLoading();
                  }));
                },
              )),
          Card(
              margin: EdgeInsets.all(10.0),
              child: ListTile(
                title: Text('Flutter ListView '),
                subtitle: Text('下拉刷新上拉加载更多'),
                onTap: () {
                  Navigator.push(context, MaterialPageRoute(builder: (context) {
                    return TstRefrsh();
                  }));
                },
              )),
          Card(
              margin: EdgeInsets.all(10.0),
              child: ListTile(
                title: Text('ExpansionPanelList'),
                subtitle: Text('ExpansionPanelList 为分组组件'),
                onTap: () {
                  Navigator.push(context, MaterialPageRoute(builder: (context) {
                    return TstExpansionPanelList();
                  }));
                },
              )),
        ],
      ));
}
